import { CSSGlobal } from './global'

export const CSSWordBreak_Name = 'CSSWordBreak'
export const CSSWordBreakType_Name = 'CSSWordBreakType'

/**
 * CSS word break 属性值
 *
 * MDN：https://developer.mozilla.org/zh-CN/docs/Web/CSS/word-break#%E8%AF%AD%E6%B3%95
 */
export const CSSWordBreak = {
  ...CSSGlobal,
  normal: 'normal',
  breakAll: 'break-all',
  keepAll: 'keep-all',
  // 实验性
  autoPhrase: 'auto-phrase'
  // 已弃用
  // breakWord: 'break-word',
} as const

export type CSSWordBreakType = (typeof CSSWordBreak)[keyof typeof CSSWordBreak]
